package template;

public class JavaCourse extends AbstractCourse{
    private boolean isChecked=false;

    public JavaCourse(boolean isChecked) {
        this.isChecked = isChecked;
    }

    @Override
    public boolean isOpen() {
        return false;
    }

    @Override
    protected void test1() {
        if (isOpen()) {
            super.test1();
        }
    }

    @Override
    protected void test2() {
        super.test2();
    }

    @Override
    protected void test3() {
        super.test3();
    }
}
